Skip to main content

dragDestination

Type​

function

Summary​

Returns the long ID of the object that dragged data was dropped on.

Syntax​

the dragDestination
dragDestination()

Description​

Use the dragDestination function to determine which object received a drag and drop.

The dragDestination function only returns a value while a dragDrop handler is being executed: that is, you can use it in a dragDrop handler, or in a handler that's called by a dragDrop handler. If called from another handler, the dragDestination function returns empty.

Examples​

the dragDestination
put the rect of the dragDestination into whereWeDragged

Value​

NameTypeDescription

return

The dragDestination function returns the long ID property of the object.

glossary: handler, property, return, execute, drag and drop, object

message: dragEnd, dragDrop

property: ID

control structure: function

function: dropChunk, target

Compatibility and Support​

Introduced

LiveCode 2.0

OS

mac

windows

linux

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?